CLRI

Section: Maintenance Commands (8)
Updated: April 19, 1994
Index Return to Main Contents
 

NAME

clri - clear an inode  

SYNOPSIS

clri [-w] [-y] [-b] special_device inode_number ...  

DESCRIPTION

Clri is obsoleted for normal file system repair work by fsck(8).

Clri zeros out the inodes with the specified inode number(s) on the filesystem residing on the given special_device . The fsck(8) utility is usually run after clri to reclaim the zero'ed inode(s) and the blocks previously claimed by those inode(s). Both read and write permission are required on the specified special_device .

The primary purpose of this routine is to remove a file which for some reason is not being properly handled by fsck(8). Once removed, it is anticipated that fsck(8) will be able to clean up the resulting mess.

The -w flag makes clri go through the motions, but will not write the zero'ed inode. The -y flag will perform the actions requested without requesting confirmation. The -b flag will set the filesystem blocksize to 512, rather than the default 1024 when indexing into the inodes.  

SEE ALSO

fsck(8), fsdb(8), icheck(8), ncheck(8)  

BUGS

If the file is open, the work of clri will be lost when the inode is written back to disk from the inode cache. Because of NeXTSTEP's use of an automounter, clri will fail to collect the superblock on the first try for a floppy (/dev/fd0a), just try again. Once any direct I/O occurs like this, though, the automounter no longer functions under NeXTSTEP.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 22:08:55 GMT, September 25, 2024